package io.renren.modules.welderradio.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.welderradio.dao.WelderradioDao;
import io.renren.modules.welderradio.entity.WelderradioEntity;
import io.renren.modules.welderradio.service.WelderradioService;


@Service("welderradioService")
public class WelderradioServiceImpl extends ServiceImpl<WelderradioDao, WelderradioEntity> implements WelderradioService {

    @Autowired
    WelderradioDao welderradioDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WelderradioEntity> page = this.page(
                new Query<WelderradioEntity>().getPage(params),
                new QueryWrapper<WelderradioEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<WelderradioEntity> getwelderradio(String welderId, String startTime, String endTime) {
        return welderradioDao.getwelderradio(welderId,startTime,endTime);
    }

}